home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Sharing Fun! I Know My Savior Lives / Sunday Savers: Sharing Fun! I Know My Savior Lives.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1352.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  1.9 KB  |  95 lines

  1. 88
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. KeyBeenPressed 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baKeyBeenPressed checks whether a key has been pressed since the last time 
  20. --- RECORDSEPARATOR ---
  21. the function was called.
  22. --- RECORDSEPARATOR ---
  23.  
  24. --- RECORDSEPARATOR ---
  25. Usage:
  26. --- RECORDSEPARATOR ---
  27.  
  28. --- RECORDSEPARATOR ---
  29. Result = baKeyBeenPressed( Key )
  30. --- RECORDSEPARATOR ---
  31.  
  32. --- RECORDSEPARATOR ---
  33. Arguments:
  34. --- RECORDSEPARATOR ---
  35.  
  36. --- RECORDSEPARATOR ---
  37. Integer. 
  38. --- RECORDSEPARATOR ---
  39. Key is the virtual key code of the key to test.
  40. --- RECORDSEPARATOR ---
  41.  
  42. --- RECORDSEPARATOR ---
  43. Returns:
  44. --- RECORDSEPARATOR ---
  45.  
  46. --- RECORDSEPARATOR ---
  47. Integer. 
  48. --- RECORDSEPARATOR ---
  49. Returns 1 if Key has been pressed since the last time KeyBeenPressed was called, 
  50. --- RECORDSEPARATOR ---
  51. else 0.
  52. --- RECORDSEPARATOR ---
  53.  
  54. --- RECORDSEPARATOR ---
  55. Examples:
  56. --- RECORDSEPARATOR ---
  57.  
  58. --- RECORDSEPARATOR ---
  59. Director: 
  60. --- RECORDSEPARATOR ---
  61. set KeyBeenPressed = baKeyBeenPressed( 65 ) --
  62. --- RECORDSEPARATOR ---
  63.  check if the "a" key has been 
  64. --- RECORDSEPARATOR ---
  65. pressed
  66. --- RECORDSEPARATOR ---
  67.  
  68. --- RECORDSEPARATOR ---
  69. Authorware: 
  70. --- RECORDSEPARATOR ---
  71. KeyBeenPressed := baKeyBeenPressed( 65 ) --
  72. --- RECORDSEPARATOR ---
  73.  check if the "a" key has been 
  74. --- RECORDSEPARATOR ---
  75. pressed
  76. --- RECORDSEPARATOR ---
  77.  
  78. --- RECORDSEPARATOR ---
  79. Notes:
  80. --- RECORDSEPARATOR ---
  81.  
  82. --- RECORDSEPARATOR ---
  83. A list of Virtual Key Codes is supplied on the next page. Some of these keys are 
  84. --- RECORDSEPARATOR ---
  85. not available in different versions of Windows. 
  86. --- RECORDSEPARATOR ---
  87. This function tracks key presses in all applications, not just yours.
  88. --- RECORDSEPARATOR ---
  89.  
  90. --- RECORDSEPARATOR ---
  91. See also:
  92. --- RECORDSEPARATOR ---
  93.  
  94. --- RECORDSEPARATOR ---
  95. baKeyIsDown